package com.yj.springbootinsert_multiple_data.rest;

import com.yj.springbootinsert_multiple_data.service.InfoService;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class InfoController {

    @Autowired
    private InfoService infoService;

    @GetMapping("/insert")
    public String insertBatch(){
        infoService.insert_batch();
        return "success";
    }

}
